package edu.hut.bookshop.pojo;

import javax.validation.constraints.NotBlank;

/**
 * @Description: 管理员类
 * @Author: guozongchao
 * @Date: 2020/6/4 11:40
 */

/**
 *

public class Admin {
    @NotBlank(message = "管理员账号不能为空")
    private String adminName;
    @NotBlank(message = "密码不能为空")
    private String password;

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
 */
public class Admin {
    private Integer adid;
    private String adname;
    private String password;
    public Integer getAdid() {
        return adid;
    }

    public void setAdid(Integer adid) {
        this.adid = adid;
    }
    public String getAdname() {
        return adname;
    }

    public void setAdname(String adname) {
        this.adname = adname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "Admin{" +
                "adid=" + adid +
                ", adname='" + adname + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}